package com.qidian.mes.mapper;

import com.qidian.mes.pojo.Process;

import java.util.List;


public interface ProcessMapper {
    /**
     * 分页查询
     * @param process
     * @return
     */
    List<Process> list(Process process);

    /**
     *
     * @param processCode
     * @return
     */
    Process getByProcessCode(String processCode);
    Process getByProcessName(String processName);
    int save(Process process);
    //根据工序编号查询工序信息
    Process selectByProcessId(Long processId);
    int update(Process process);

    //根据id删除工序
    int deleteByProcessId(Long processId);
}
